package be.novelfaces.showcase.webdriver.pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

import be.novelfaces.showcase.webdriver.pages.numpaddecsep.NumpadDecSepPage;
import be.novelfaces.showcase.webdriver.util.NFBy;
import be.novelfaces.webdriver.BaseComponent;

public class Navigation extends BaseComponent {

	@FindBy(id = NFBy.NAV_FORM + "numpadDecSepLink")
	private WebElement numpadDecSepLink;

	public Navigation() {
		super(By.id("logo"));
	}
	
	public NumpadDecSepPage gotoNumpadDecSepPage() {
		numpadDecSepLink.click();
		return new NumpadDecSepPage().assertArrivedAt();
	}

}
